@extends('layouts.home')
@section('title','金汇智谷——科技金融')
@section('content')

	<style type="text/css">
	.searchcontent{
		width:1000px;
		min-height: 700px;
		margin:20px auto;
		padding:35px;
		border:1px solid #ddd;
	}
	.search_list{
		list-style: none;
	}
	.search_list h1{
		font-size:20px;
		color:#666;
		text-align: center;
		margin-top:100px;
		font-family: '微软雅黑';
	}
	.search_list li{
		line-height: 50px;
		border-bottom:1px solid #ccc;
	}
	.search_list li span{
		width:200px;
		color:#35A7C1;
		padding-left: 10px;
		display: inline-block;
	}
	.search_list li a{
		display: inline-block;
		width:650px;
	}
	.search_list li a:hover{
		text-decoration: underline;
	}
	.search_list li i{
		float:right;
		color:gray;
		padding-right: 10px;
	}
	</style>

	<div class="searchcontent">
		<ul class="search_list">
		@if(isset($data))
			@if(count($data)>0)
				@foreach($data as $d)
					@if(isset($d->fru_id))
						<li><span>科技成果</span><a href="{{url('fruit/'.$d->fru_id)}}" target="_blank">{{$d->fru_name}}</a><i>{{date('Y-m-d',$d->fru_time)}}</i></li>
					@elseif(isset($d->nee_id))
						<li><span>科技需求</span><a href="{{url('need/'.$d->nee_id)}}" target="_blank">{{$d->nee_name}}</a><i>{{date('Y-m-d',$d->nee_time)}}</i></li>
					@elseif(isset($d->ass_id))
						<li><span>科技评估</span><a href="{{url('assess/'.$d->ass_id)}}" target="_blank">{{$d->ass_name}}</a><i>{{date('Y-m-d',$d->ass_time)}}</i></li>
					@elseif(isset($d->hat_id))
						<li><span>科技孵化</span><a href="{{url('hatch/'.$d->hat_id)}}" target="_blank">{{$d->hat_name}}</a><i>{{date('Y-m-d',$d->hat_time)}}</i></li>
					@elseif(isset($d->ban_id))
						<li><span>科技金融</span><a href="{{url('bank/'.$d->ban_id)}}" target="_blank">{{$d->ban_name}}</a><i>{{date('Y-m-d',$d->ban_time)}}</i></li>
					@elseif(isset($d->exp_id))
						<li><span>科技专家库</span><a href="{{url('expert/'.$d->exp_id)}}" target="_blank">{{$d->exp_name}}</a><i>{{date('Y-m-d',$d->exp_time)}}</i></li>
					@endif
				@endforeach
			@else
				<h1>搜索结果为空</h1>
			@endif
		@endif
		</ul>
	</div>

@endsection